﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="wucDanhSachAll.ascx.cs" Inherits="CungMuaC5.WebUC.wucDanhSachAll" %>
<style type="text/css">
    .style1
    {
        width: 140px;
        height: 40px;
    }
</style>

<asp:DataList ID="DataListAll" runat="server" DataKeyField="MaKM" 
    RepeatColumns="3">
    <ItemTemplate>
        <table 
            
            
            style="border: thin groove #008000; padding: 2px; margin: 4px; width: 290px; height: auto; background-color: #CCFF99;">
            <tr>
                <td align="center" colspan="2" style="height: 70px; width: 280px;">
                    <asp:Label ID="lblTenKM" runat="server" Font-Bold="True" Font-Size="Large" 
                        Text='<%# Eval("TenKM") %>'></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2" 
                    style="height: 200px; width: 280px; background-color: #666666">
                    <asp:Image ID="imgKM" runat="server" Height="200px" 
                        ImageUrl='<%# Eval("HinhAnh", "~/Images/KhuyenMai/{0}") %>' 
                        Width="280px" />
                </td>
            </tr>
            <tr>
                <td align="center" 
                    style="border: thin groove #008000; width: 140px; height: 50px; background-color: #F2F2F2;">
                    <asp:Label ID="lblDonGiaMoi" runat="server" Font-Bold="True" Font-Size="Large" 
                        ForeColor="#FF3300" Text='<%# Eval("DonGiaMoi", "{0} đ") %>'></asp:Label>
                </td>
                <td align="center" 
                    style="border: thin groove #008000; width: 140px; height: 50px; background-color: #F2F2F2;">
                    <asp:ImageButton ID="ImageButton1" runat="server" 
                        ImageUrl="~/Images/XemProduct.png" 
                        
                        
                        PostBackUrl='<%# Eval("MaKM", "~/Products/ProductDetail.aspx?makm={0}") %>' />
                </td>
            </tr>
            <tr>
                <td align="center" 
                    style="border: thin groove #008000; width: 140px; height: 40px; background-color: #F2F2F2;" 
                    class="style1">
                    &nbsp;<asp:Label ID="lblDonGiaCu" runat="server" 
                        Text='<%# Eval("DonGiaCu", "{0}đ") %>' Font-Overline="False" 
                        Font-Strikeout="True"></asp:Label>
                </td>
                <td align="center" 
                    style="border: thin groove #008000; width: 140px; height: 40px; background-color: #F2F2F2;" 
                    class="style1">
                    <asp:Label ID="Label5" runat="server" Font-Size="Small" Text="Có "></asp:Label>
                    <asp:Label ID="Label4" runat="server" Font-Bold="True" Font-Size="Small" 
                        Text='<%# Eval("SoNguoiCungMua") %>'></asp:Label>
                    &nbsp;<asp:Label ID="Label6" runat="server" Font-Size="Small" Text=" cùng mua"></asp:Label>
                </td>
            </tr>
        </table>
    </ItemTemplate>
</asp:DataList>




